package com.lucun.es_transaction.service;

import com.lucun.es_transaction.entity.Admin;
import com.lucun.es_transaction.util.JsonResult;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AdminService {
    /*
    * 添加
    * */
    JsonResult<?> insert(Admin record, HttpServletRequest request);
/*
* 查询所有Admin
* */
    List<Admin> findAll();
    /*
    * 根据id修改
    * */
    JsonResult<?> updateByPrimaryKeySelective(Admin record,HttpServletRequest request);
    /*
     * 通过编号查询
     * */
    JsonResult<?> findByNumber(HttpServletRequest request);
    /*
    * 删除
    * */
    JsonResult<?> deleteByPrimaryKey(int id,HttpServletRequest request);
}
